home *** CD-ROM | disk | FTP | other *** search
/ Aminet 15 / Aminet 15 - Nov 1996.iso / Aminet / dev / basic / ace24dist.lha / ace24.lha / include / graphics / Sprite.h < prev    next >
C/C++ Source or Header  |  1996-09-10  |  2KB  |  69 lines

  1. #ifndef GRAPHICS_SPRITE_H
  2. #define GRAPHICS_SPRITE_H 1
  3. /*
  4. ** sprite.h for ACE Basic
  5. **
  6. ** Note: Translated to ACE by ConvertC2ACE
  7. **       @ MapMeadow Software, Nils Sjoholm
  8. **
  9. **
  10. ** Date: 09/01/95
  11. **
  12. **
  13. */
  14.  
  15. /*
  16. ** This are the StructPointer defines for sprite.h
  17. */
  18. #ifndef ExtSpritePtr
  19. #define ExtSpritePtr ADDRESS
  20. #endif
  21. #ifndef SimpleSpritePtr
  22. #define SimpleSpritePtr ADDRESS
  23. #endif
  24. /*
  25. ** End of StructPointer defines for sprite.h
  26. */
  27.          
  28. #ifndef EXEC_TYPES_H
  29. #include <exec/types.h>
  30. #endif
  31.  
  32. #define SPRITE_ATTACHED &H80
  33.  
  34. STRUCT SimpleSprite
  35.  
  36.     ADDRESS   posctldata 
  37.     SHORTINT height 
  38.     SHORTINT   x 
  39.     SHORTINT  y     /* current position */
  40.     SHORTINT   num 
  41. END STRUCT 
  42.  
  43. STRUCT ExtSprite
  44.  
  45.     SimpleSprite es_SimpleSprite     /* conventional simple sprite structure */
  46.     SHORTINT   es_wordwidth            /* graphics use only,  subject to change */
  47.     SHORTINT   es_flags            /* graphics use only,  subject to change */
  48. END STRUCT 
  49.  
  50.  
  51.  
  52. /* tags for AllocSpriteData() */
  53. #define SPRITEA_Width       &H81000000
  54. #define SPRITEA_XReplication    &H81000002
  55. #define SPRITEA_YReplication    &H81000004
  56. #define SPRITEA_OutputHeight    &H81000006
  57. #define SPRITEA_Attached    &H81000008
  58. #define SPRITEA_OldDataFormat   &H8100000a  /* MUST pass in outputheight if using this tag */
  59.  
  60. /* tags for GetExtSprite() */
  61. #define GSTAG_SPRITE_NUM &H82000020
  62. #define GSTAG_ATTACHED   &H82000022
  63. #define GSTAG_SOFTSPRITE &H82000024
  64.  
  65. /* tags valid for either GetExtSprite or ChangeExtSprite */
  66. #define GSTAG_SCANDOUBLED   &H83000000  /* request "NTSC-Like" height if possible. */
  67.  
  68. #endif  /* GRAPHICS_SPRITE_H */
  69.